{extend name="public/base"/}
 {block name="content"}
  <section class="content">
            <div class="col-md-9" style="width:100%">
              <div class="box box-default">
			<div class="box-header">
      <h3 class="box-title" ><a href="{:U('Coupon/index')}" class="btn btn-primary">领取者名单</a></h3>      
      <h3 class="box-title" ><a href="{:U('Coupon/generate')}" class="btn btn-primary">生成优惠券</a></h3>
      <h3 class="box-title" ><a href="{:U('Coupon/grant')}" class="btn btn-primary">发放优惠券</a></h3>
				
			</div>
				<!-- /.box-header -->
                <!-- form start -->
                  <form action="{:U('Coupon/generate')}" method="post">
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-12">
                      <table class="table table-bordered">
					  
					  	<tr>
                            <th width="140">楼盘:</th>
                        <td>						
							<select name="panid" class="form-control">
							<option value="0">请选择楼盘</option>
                            {volist name="pantype" id="data"}
							<option value="{$data.id}">{$data.name}</option>
                            {/volist}
						     </select>
						</td>
                        </tr> 
						
                        <tr>
                            <th width="140">名称:</th>
                            <td><input class="form-control" type="text" name="name" value="" size="30"></td>
                        </tr>
						 <tr>
                            <th width="140">金额:</th>
                            <td><input class="form-control" type="text" name="money" value="" size="30"></td>
                        </tr>
                         <tr>
                            <th width="140">数量:</th>
                            <td><input class="form-control" type="text" name="nums" value="" size="30"></td>
                        </tr>
                         <tr>
                            <th width="140">有效天数:</th>
                            <td><input class="form-control" type="text" name="tianshu" value="10" size="30"></td>
                        </tr>
                         <tr>
                            <th width="140">优惠券描述:</th>
                            <td><input class="form-control" type="text" name="content" value="优惠券温馨提示" size="30"></td>
                        </tr>                         					  
					
                      </table>
                    </div><!-- /.col -->
                  </div><!-- /.row -->
                </div><!-- /.box-body -->
                <div class="box-footer">
                  <button type="submit" class="btn btn-primary">生成</button>
                </div>
				</form>
              
              </div><!-- /.box -->
            </div>
			<!-- /.col -->
			</section>
 {/block}
